/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package rule;

/**
 *
 * @author livia
 */
public class PropertySeg implements RuleSegment {
    String name;
    String range;
    String domain;

    public PropertySeg(String propertyName, String dom, String ran) {
        this.name = propertyName;
        this.range = ran;
        this.domain = dom;
    }

    public String getName() {
        return name;
    }

    public String getDomain(){
        return range;
    }

    public String getRange(){
        return domain;
    }
    
    public String toString(){
		return name+"("+domain+","+range+")";    	
    }
}
